package com.boot.unity.api.common;

public enum ResultCodeEnum {
    SUCCESS("0","成功"),
    FAIL("1","失败"),
    NOT_FOUND("100","请求的服务或资源不存在"),
    DATA_FORMAT_ERROR("200","数据格式错误，无法正确解析"),
    TIMESTAMP_REPEAT_OR_ERROR("201","时间戳重复或错误"),
    CERT_ERROR("202","证书无法通过验证");

    String code;
    String msg;

    ResultCodeEnum(String code , String msg) {
        this.code = code;
        this.msg = msg;
    }

    public static void main(String[] args) {
        ResultCodeEnum codeEnum = ResultCodeEnum.SUCCESS;
        System.out.println(codeEnum.code);
        System.out.println(codeEnum.msg);
    }
}
